<template>
  <div>
    <h2>我是Home的内容</h2>
    <div>
      <ul class="nav nav-tabs">
        <li>
          <router-link
            class="list-group-item"
            active-class="active"
            to="/Home/News"
            >News</router-link
          >
        </li>
        <li>
          <router-link
            class="list-group-item"
            active-class="active"
            to="/Home/Message"
            >Message</router-link
          >
        </li>
      </ul>
      <!--  -->
      <!-- 缓存路由，路由不被销毁，缓存一个，就写一个组件名，缓存多个就写成数组 -->
      <!-- 缓存多个 -->
      <!-- <kleep-alive include="['News','Message']"></keep-alive> -->
      <keep-alive include="News">
        <router-view></router-view>
      </keep-alive>
    </div>
  </div>
</template>

<script>
export default {
  name: "Home",
};
</script>